package com.financing.platform.task;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.financing.platform.dao.IProjectDao;

/**
 * 
* @ClassName: ProjectSaleStatusUpdateJob 
* @Description: 产品销售过期状态修改
* @author chenming 
* @date 2014年9月22日 下午6:32:23 
*
 */
@Component("projectSaleStatusUpdateJob")
public class ProjectSaleStatusUpdateJob {
	
	private Logger log = Logger.getLogger(this.getClass());
	
	@Autowired
	private IProjectDao projectDaoImpl;
	
//	@Scheduled(cron = "0 0/5 * * * ?") 
	public void autoUpdateSaleStatus(){
		log.info("auto update sale status.....");
		projectDaoImpl.autoUpdateSaleStatus();
	}
	
}
